#include <openssl/rsa.h>
#include <openssl/bio.h>
int main()
{
    RSA *r = nullptr;
    int bits = 512;
    unsigned long e = RSA_3;
    r = RSA_generate_key(bits,RSA_3,NULL,NULL);
    RSA_print_fp(stdout,r,11);
    RSA_free(r);
}